﻿using System;
using System.ComponentModel;

namespace Test20230505.Models
{
	public class Supplierinfo
	{
        [DisplayName("序号")]
        public int Id { get; set; }
        [DisplayName("预付款日期")]
        public DateTime Prepaymentdate { get; set; }
        public DateTime Supplierprepaymentdate { get; set; }
        public DateTime Prepaymentrmbdate { get; set; }
        public DateTime Balancepaymentdate { get; set; }
        public DateTime Balancepaymentrmbdate { get; set; }
        public DateTime Supplierbalancepaymentdate { get; set; }
        [DisplayName("客户")]
        public string Customername { get; set; }
        [DisplayName("产品型号")]
        public string Productmodel { get; set; }
        [DisplayName("数量")]
        public int Orderquantity { get; set; }
        [DisplayName("单价")]
        public decimal Unitprice { get; set; }
        public decimal Totalprice { get; set; }
        public string Ordernumber { get; set; }
        public decimal Prepayment { get; set; }

        public decimal Prepaymentrmb { get; set; }
        public string Ordernote { get; set; }
        public decimal Balancepayment { get; set; }
        public decimal Balancepaymentrmb { get; set; }
        public string Suppliername { get; set; }
        public decimal Costprice { get; set; }
        public decimal Totalcostprice { get; set; }
        public decimal Supplierprepayment { get; set; }
        public decimal Supplierbalancepayment { get; set; }

        public string Prepaymentpercent = "30%";
        public bool Isinvoice { get; set; }
        public string Isinvoiceshow => Isinvoice ? "已开票" : "未开票";
        public bool Istaxrefund { get; set; }
        public string Istaxrefundshow => Istaxrefund ? "已退税" : "未退税";
        public bool Isdelivered { get; set; }
        public string Isdeliveredshow => Isdelivered ? "已发货" : "未发货";

        public decimal Forwardercost { get; set; }
        public decimal Oemcost { get; set; }
        public decimal Taxrefund { get; set; }
        public decimal Totalprofit { get; set; }
        public string Sales { get; set; }
        public bool Istaxprice { get; set; }
        public string Istaxpriceshow => Istaxprice ? "含税价" : "不含税价";
    }
}

